/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package foxmob.mlts;

import java.awt.BorderLayout;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.BorderLayout;

import foxmob.mlts.component.FileManager;
import foxmob.mlts.model.MultipleChoiceQuestion;
import foxmob.mlts.model.Section;
import foxmob.mlts.model.Question;
import foxmob.mlts.model.Subsection;
import foxmob.mlts.model.QuestionPaper;
import java.awt.Component;
import java.io.IOException;

/**
 *
 * @author Lunayo
 */
public class TestUI {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        //I think that our repository is working,
        //But we need to test it
       
        FileManager manager = FileManager.getInstanceObject();
       QuestionPaper test = manager.getTestRecord("record");
//        TestFrame testFrame = new TestFrame(test.getTestName());
//       
//        te/stFrame.sectionTitle.setText(test.getSections().get(0).getTitle());
//        
//      
////        for(Subsection sub : test.getSections().get(0).getSubsections()){
////            int counter = 1;
//            for(Question q : sub.getQuestions())
//            {
//                MultipleChoiceQuestion mcq = (MultipleChoiceQuestion)q;
//                JPanel currentQuestion = new TestQuestionPanel(mcq.getPossibleAnswers());
//                testFrame.add(new JLabel(counter+". "+q.getQuestionText()));
//                testFrame.add(currentQuestion);
//                
//                
//                counter++;
//            }
//        }
//        
        //Leo interface
         
             
        
        }
       
     
   
        
    }

